package uid.jsf;

public class CommandLink extends ComponenteAbstrato {

	private String value;
	private String action = "pagina0.xhtml";

	public CommandLink(String id, String value, String action) {
		super(id);
		this.value = value;
		this.setAction(action);
	}

	public void setAction(String action) {
		this.action = action;
		// this.action = "pagina0.xhtml";
	}

	@Override
	public String getJSF() {

		return "<h:commandLink value=\"" + this.value + "\" action=\"#{BEAN."
				+ this.action + "}\"/>" + "\n";
	}
}
